package c.e.a.b.e.c;

/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */
public final class y3 extends z3 {
    public final int e;
    public final int f;

    public y3(byte[] bArr, int i, int i2) {
        super(bArr);
        t3.j(i, i + i2, bArr.length);
        this.e = i;
        this.f = i2;
    }

    public final byte b(int i) {
        int i2 = this.f;
        if (((i2 - (i + 1)) | i) >= 0) {
            return this.d[this.e + i];
        }
        if (i < 0) {
            StringBuilder stringBuilder = new StringBuilder(22);
            stringBuilder.append("Index < 0: ");
            stringBuilder.append(i);
            throw new ArrayIndexOutOfBoundsException(stringBuilder.toString());
        }
        StringBuilder stringBuilder2 = new StringBuilder(40);
        stringBuilder2.append("Index > length: ");
        stringBuilder2.append(i);
        stringBuilder2.append(", ");
        stringBuilder2.append(i2);
        throw new ArrayIndexOutOfBoundsException(stringBuilder2.toString());
    }

    public final int c() {
        return this.f;
    }

    public final byte i(int i) {
        return this.d[this.e + i];
    }

    public final int l() {
        return this.e;
    }
}
